
public class BasicProgramming {

	public static void main(String[] args) {

		int i = 5;

		if (i == 3) {
			System.out.println("I value is 3");
			System.out.println("I value is 3");
		} else if (i == 4) {
			System.out.println("I value is 4");
		} else {
			System.out.println("I value is 5");
		}

		int count = 0;
		// for (initialization; termination; incremental condition)
		for (count = 10; count > -1; count--) {

			 System.out.println("Count value is :" + count);
		}

		count = 0;

		while (count < 10) {
			System.out.println("count value in while is : " + count);
			count = count + 1;
		}

		count = 12;
		
		while (count < 10) {
			System.out.println("<<this never gets printed :>>  count value in while is : " + count);
			count = count + 1;
		}
		do {
			System.out.println("count value in do while is : " + count);
		} while (count < 10);
		
		System.out.println("after do while");
	}

}
